"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const crypto_js_1 = __importDefault(require("crypto-js"));
class CryptoUtil {
    static Encrypt(dataStr, key) {
        return crypto_js_1.default.AES.encrypt(dataStr, key).toString();
    }
    static Decrypt(ciphertext, key) {
        let bytes = crypto_js_1.default.AES.decrypt(ciphertext, key);
        return bytes.toString(crypto_js_1.default.enc.Utf8);
    }
}
exports.default = CryptoUtil;
